<div class=page_head>
<h2>Editing email</h2>
</div>

<%= error_messages_for :email %>

<% form_for(:email, :url => email_path(@email), :html => { :method => :put }) do |f| %>
<div class="FormBlock">
    <table>
    <tr><td><b>Name</b></td><td><%= f.text_field :name %></td></tr>
    <tr><td><b>Subject</b></td><td><%= f.text_field :subject,:size=>80%></td></tr>
    <tr><td><label for="language"><%='Language'.t%>:</label></td><td><%=f.select :lang,LANGTYPES%> </td></tr>
    <tr><td><b>Body</b></td><td><%=f.hidden_field :body%><%= fckeditor_text "email_body","message"%></td></tr>
  </table>
  <%=submit_tag "Save".t,:class=>'button'%>
<% end %>
